.therapist-main {
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4ff 100%);
    min-height: calc(100vh - 80px);
}

.page-header {
    text-align: center;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid #eef2f7;
    border-radius: 8px;
    width: 300px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eef2f7;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.therapist-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

.therapist-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.therapist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.therapist-info {
    text-align: center;
}

.therapist-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.therapist-info .title {
    color: #4a90e2;
    font-size: 16px;
    margin-bottom: 12px;
}

.therapist-info .fields {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.therapist-info .description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.therapist-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.detail-btn,
.appointment-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-btn {
    background: #f5f7fa;
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.detail-btn:hover {
    background: #e8f4ff;
}

.appointment-btn {
    background: #4a90e2;
    color: #fff;
}

.appointment-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.appointment-form .form-group {
    margin-bottom: 20px;
}

.appointment-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #eef2f7;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.cancel-btn,
.submit-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background: #f5f7fa;
    color: #666;
}

.cancel-btn:hover {
    background: #eef2f7;
}

.submit-btn {
    background: #4a90e2;
    color: #fff;
}

.submit-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .filter-options {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .filter-options select {
        width: 100%;
    }

    .therapist-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 40px;
    color: #ff4444;
}

.error-state button {
    margin-top: 20px;
    padding: 8px 20px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 无数据提示样式 */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 详情弹窗样式 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.detail-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 15px;
    padding: 0;
}

.detail-header {
    padding: 20px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.detail-header h2 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.detail-body {
    padding: 20px;
}

.therapist-basic {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.avatar-section img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.rating {
    text-align: center;
    font-size: 18px;
}

.star {
    color: #ffd700;
    margin-right: 5px;
}

.info-section h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.title {
    color: #666;
    margin-bottom: 10px;
}

.stats {
    color: #4a90e2;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.fields-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.field-tag {
    background: #f0f7ff;
    color: #4a90e2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.detail-footer {
    padding: 20px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.appointment-form .hint {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}